package tat.domain;

import java.util.Observable;

public class TatActor extends Observable{

    private String name;

    public TatActor(final String actorName) {
        this.name = actorName;
    }

    public String name() {
        return this.name;
    }
    
    public void changeName(String newName){
    	this.name = newName;
    	this.setChanged();
    	this.notifyObservers();
    }
    
    public String toString() {
        return "\t" + name + "\n";
    }

    public String toXML() {
        return "\t<actor>" + name + "</actor>\n";
    }

}
